<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div style="background-color: pink;" id="fa">
        <button>按钮23</button>
    </div>
    <script>
        fa.onclick=function(e){
            console.log(e.target);//点击到的最小颗粒
            console.log(e.currentTarget);//谁添加的事件
        }
    </script>
</body>
</html>